﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Common;

namespace YQBlog.Models
{
    /// <summary>
    /// 初始化文章对象
    /// </summary>
    public class InitialArticleModel
    {
        public static blog_varticle VArticle()
        {
            blog_varticle varticle = new blog_varticle();
            varticle.articleid = 0;
            varticle.typeid = 0;
            varticle.cateid = 0;
            varticle.catename = "";
            varticle.catepath = "";
            varticle.title = "";
            varticle.summary = "";
            varticle.content = "";
            varticle.tags = "";
            varticle.layer = 0;
            varticle.orderid = 1;
            varticle.parentid = 0;
            varticle.replypermit = 1;
            varticle.seodescription = "";
            varticle.seokeywords = "";
            varticle.seometas = "";
            varticle.seotitle = "";
            varticle.rename = "";
            varticle.status = 1;
            varticle.userid = 0;
            varticle.username = "";
            varticle.iscommend = 2;
            varticle.istop = 2;
            varticle.articletypeid = 0;
            varticle.viewcount = 0;
            varticle.ip = Utils.GetIP();
            varticle.createdate = DateTime.Now;
            varticle.lastreplydate = DateTime.Now;

            return varticle;
        }

        public static blog_article Article()
        {
            blog_article article = new blog_article();
            return article;
        }
    }
}